import request from "@/utils/request";

export function getMaterialTypeByPage(query) {
  return request({
    url: `/system/materialType/getMaterialTypeByPage`,
    method: "post",
    data: query,
  });
}

// 增加流程模型

export function addMaterialType(query) {
  return request({
    url: `/system/materialType/addMaterialType`,
    method: "post",
    data: query,
  });
}
/**
 *
 * @param {*} query
 * @returns
 */
export function delMaterialType(query) {
  return request({
    url: `/system/materialType/delMaterialType`,
    method: "post",
    data: query,
  });
}

export function updateMaterialType(query) {
  return request({
    url: `/system/materialType/updateMaterialType`,
    method: "post",
    data: query,
  });
}
